﻿using System.Collections.Generic;

namespace Downloader.Domain.Contracts.Tasks
{
   public interface ICategoryTasks
   {
       /// <summary>
       /// 得到列表
       /// </summary>
       /// <returns></returns>
       List<Category> GetAll();
       /// <summary>
       /// 根据ID得到指定对象
       /// </summary>
       /// <param name="id"></param>
       /// <returns></returns>
       Category Get(int id);
       /// <summary>
       /// 新建或更新对象
       /// </summary>
       /// <param name="category"></param>
       /// <returns></returns>
       Category CreateOrUpdate(Category category);
       /// <summary>
       /// 删除指定ID的对象。
       /// </summary>
       /// <param name="id"></param>
       void Delete(int id);
   }
}
